package com.welike.shibo.eneity;

import lombok.Data;

import java.util.Date;

/**
 * @author fangyu
 * @version v1.0.0
 * @since 2019-08-20 18:05
 */

@Data
public class LoginUser {

    private Integer id;//用户主键
    private String uid;//用户唯一id
    private String phone;//手机号
    private String nickname;//用户昵称
    private Integer gender;//性别
    private String birthday;//生日
    private String address;//地址
    private String avatar;//头像
    private String signature;//个性签名
    private Integer level;//等级
    private Date regTime;//注册时间
    private String deviceId;//设备Id
    private String deviceType;//设备类型

    public LoginUser() {
    }

    public LoginUser(String uid) {
        this.uid = uid;
    }

    public LoginUser(Integer id, String uid, String phone, String nickname, Integer gender, String birthday, String address, String avatar, String signature, Integer level, Date regTime, String deviceId, String deviceType) {
        this.id = id;
        this.uid = uid;
        this.phone = phone;
        this.nickname = nickname;
        this.gender = gender;
        this.birthday = birthday;
        this.address = address;
        this.avatar = avatar;
        this.signature = signature;
        this.level = level;
        this.regTime = regTime;
        this.deviceId = deviceId;
        this.deviceType = deviceType;
    }
}
